package org.lds.message.center.admin.common.enums;

import org.lds.message.center.common.enums.ErrCodeEnum;

public enum AdminErrorEnum implements ErrCodeEnum {

    APP_NOT_EXIST("APP_NOT_EXIST", "应用不存在"),
    TEMPLATE_NOT_EXIST("TEMPLATE_NOT_EXIST", "模板不存在"),
    APP_USING("APP_USING", "应用正在使用中"),

    CHANNEL_TYPE_NOT_NULL("CHANNEL_TYPE_NOT_NULL", "通道类型不能为空"),
    CHANNEL_NAME_NOT_NULL("CHANNEL_NAME_NOT_NULL", "通道名称不能为空"),
    ;

    private String code;
    private String message;

    AdminErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getErrCode() {
        return code;
    }

    @Override
    public String getErrMsg() {
        return message;
    }

}
